package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 iot_device
 * 公司名称：未可自动化 <br/>
 * 作者：weikeauto <br/>
 */
public class IotDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 所属组织id */
    @Excel(name = "所属组织id")
    private Long deptId;

    /** 从机地址 */
    @Excel(name = "从机地址")
    private int slaveAddress;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceNum;

    /** 设备状态：0->在线1->离线 */
    @Excel(name = "设备状态： 0->在线 1->离线")
    private Long deviceStatus;

    /** 设备描述 */
    @Excel(name = "设备描述")
    private String deviceDesc;

    /** 定位类型：0->手动定位1->自动定位 */
    @Excel(name = "定位类型： 0->手动定位 1->自动定位")
    private Long locationType;

    private String addr;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal lng;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal lat;

    /** 关联的模板id */
    @Excel(name = "关联的模板id")
    private Long templatesId;

    /** 关联的网关id */
    @Excel(name = "关联的网关id")
    private Long gatewayId;

    private String deviceImg;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setDeviceNum(String deviceNum) 
    {
        this.deviceNum = deviceNum;
    }

    public String getDeviceNum() 
    {
        return deviceNum;
    }
    public void setDeviceStatus(Long deviceStatus) 
    {
        this.deviceStatus = deviceStatus;
    }

    public Long getDeviceStatus() 
    {
        return deviceStatus;
    }
    public void setDeviceDesc(String deviceDesc) 
    {
        this.deviceDesc = deviceDesc;
    }

    public String getDeviceDesc() 
    {
        return deviceDesc;
    }
    public void setLocationType(Long locationType)
    {
        this.locationType = locationType;
    }

    public Long getLocationType()
    {
        return locationType;
    }
    public void setLng(BigDecimal lng) 
    {
        this.lng = lng;
    }

    public BigDecimal getLng() 
    {
        return lng;
    }
    public void setLat(BigDecimal lat) 
    {
        this.lat = lat;
    }

    public BigDecimal getLat() 
    {
        return lat;
    }
    public void setTemplatesId(Long templatesId) 
    {
        this.templatesId = templatesId;
    }

    public Long getTemplatesId() 
    {
        return templatesId;
    }
    public void setGatewayId(Long gatewayId)
    {
        this.gatewayId = gatewayId;
    }

    public Long getGatewayId()
    {
        return gatewayId;
    }

    public int getSlaveAddress() {
        return slaveAddress;
    }

    public void setSlaveAddress(int slaveAddress) {
        this.slaveAddress = slaveAddress;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getDeviceImg() {
        return deviceImg;
    }

    public void setDeviceImg(String deviceImg) {
        this.deviceImg = deviceImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceName", getDeviceName())
            .append("deptId", getDeptId())
            .append("deviceNum", getDeviceNum())
            .append("deviceStatus", getDeviceStatus())
            .append("deviceDesc", getDeviceDesc())
            .append("locationType", getLocationType())
            .append("lng", getLng())
            .append("lat", getLat())
            .append("templatesId", getTemplatesId())
            .append("gatewayId", getGatewayId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
